package com.zwk.gulimall.product.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * sku销售属性&值
 * 
 * @author zhuwenkang
 * @email zhuwenkang@gmail.com
 * @date 2022-12-30 21:27:34
 */
@Data
@NoArgsConstructor
@TableName("pms_sku_sale_attr_value")
public class SkuSaleAttrValueEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * sku_id
	 */
	private Long skuId;
	/**
	 * attr_id
	 */
	private Long attrId;
	/**
	 * 销售属性名
	 */
	private String attrName;
	/**
	 * 销售属性值
	 */
	private String attrValue;
	/**
	 * 顺序
	 */
	private Integer attrSort;

	public SkuSaleAttrValueEntity(Long skuId, Long attrId, String attrName, String attrValue) {
		this.skuId = skuId;
		this.attrId = attrId;
		this.attrName = attrName;
		this.attrValue = attrValue;
	}
}
